package com.fable.sp.core.service.impl;

import com.fable.sp.core.service.TableNameResolver;

/**
 * 表名生成器.
 *
 * @author stormning on 16/7/15.
 */
public class ContainerTableNameResolver implements TableNameResolver {

    private static final String NAME_PREFIX = "sp_auto";

    @Override
    public String generateTableName(long containerId) {
        return NAME_PREFIX + "_" + containerId;
    }
}
